﻿<UserControl x:Class="Tanmia.Warehouse.Presentation.Scenarios.UnitScenario.UnitBrowser"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:basis="clr-namespace:Tanmia.Basis.WPF.Controls;assembly=Tanmia.Basis"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <ToolBar Grid.Row="0">
            <Button Content="تحديث" Command="{Binding Path=RefreshCommand}" />
            <Button Content="حذف" Command="{Binding Path=DeleteCommand}" />
        </ToolBar>
        <DataGrid Grid.Row="1" ItemsSource="{basis:GridBinding Path=Entities}"></DataGrid>
    </Grid>
</UserControl>
